package command;

import domain.Profile;
import domain.User;

public class ProfessionalInfoForm {
	private String experience;
	
	private String education;

	private String web;

	private String recommendations;
	
	private String title;

	private String actualjob;

	private String links;

	private String extract;

	private String interests;

	private String knowldege;	
	
	public ProfessionalInfoForm() {
		
	}
	
	public ProfessionalInfoForm(User user){
		Profile p = user.getProfile();
		
		this.experience = p.getExperience();
		this.education = p.getEducation();
		this.web = p.getWeb();
		this.recommendations = p.getRecommendations();
		this.title = p.getTitle();
		this.actualjob = p.getActualjob();
		this.links = p.getLinks();
		this.extract = p.getExtract();
		this.interests = p.getInterests();
		this.knowldege = p.getKnowldege();
	}
	
	public void update(User user){
		Profile p = user.getProfile();
		p.setExperience(experience);
		p.setEducation(education);
		p.setWeb(web);
		p.setRecommendations(recommendations);
		p.setTitle(title);
		p.setActualjob(actualjob);
		p.setLinks(links);
		p.setExtract(extract);
		p.setInterests(interests);
		p.setKnowldege(knowldege);
	}

	public String getExperience() {
		return experience;
	}

	public void setExperience(String experience) {
		this.experience = experience;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getWeb() {
		return web;
	}

	public void setWeb(String web) {
		this.web = web;
	}

	public String getRecommendations() {
		return recommendations;
	}

	public void setRecommendations(String recommendations) {
		this.recommendations = recommendations;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getActualjob() {
		return actualjob;
	}

	public void setActualjob(String actualjob) {
		this.actualjob = actualjob;
	}

	public String getLinks() {
		return links;
	}

	public void setLinks(String links) {
		this.links = links;
	}

	public String getExtract() {
		return extract;
	}

	public void setExtract(String extract) {
		this.extract = extract;
	}

	public String getInterests() {
		return interests;
	}

	public void setInterests(String interests) {
		this.interests = interests;
	}

	public String getKnowldege() {
		return knowldege;
	}

	public void setKnowldege(String knowldege) {
		this.knowldege = knowldege;
	}
}